/*
 * @Descripttion:
 * @Author: zhengminjie
 * @Date: 2021-05-13 11:27:27
 * @LastEditors: zhengminjie
 * @LastEditTime: 2021-05-13 11:27:28
 */
import request from '@/utils/request'


//搜索群组除自己的群
export function searchAllGroup(groupNum,groupName){
  return request({
    url:'/distribution/groupManager/searchAll?groupNum='+groupNum+'&groupName='+groupName,
    method: 'get',
  })
} 

//搜索群组自己的群
export function searchGroup(groupNum,groupName){
  return request({
    url:'/distribution/groupManager/search?groupNum='+groupNum+'&groupName='+groupName,
    method: 'get',
  })
} 

//创建群组
export function createGroup(data){
    return request({
      url:'/distribution/groupManager/create',
      method: 'post',
      data: data
    })
  }  

//添加群组
export function addGroup(data){
  return request({
    url:'/distribution/groupManager/add',
    method: 'post',
    data: data
  })
}  

//删除群组
export function deleteGroup(data){
  return request({
    url:'/distribution/groupManager/delete',
    method: 'post',
    data: data
  })
}  

//绑定身份信息
export function bandIdentity(data){
  return request({
    url:'/distribution/groupManager/band',
    method: 'post',
    data: data
  })
}  